import { defineStore } from 'pinia';
import store from '~/store';

export const useAppStore = defineStore('appStore', {
  state: () => ({
    count: 1
  }),
  actions: {
    setCount(num: number) {
      this.count = num;
    }
  }
});

export const useAppStoreWithout = () => useAppStore(store);
